// 全局样式文件

// 变量定义
@primary-color: #0052d9;
@success-color: #00a870;
@warning-color: #ed7b2f;
@error-color: #d54941;
@text-color: #000000;
@text-color-secondary: #666666;
@text-color-placeholder: #bbbbbb;
@border-color: #e7e7e7;
@background-color: #f5f5f5;
@white: #ffffff;

// 基础样式重置
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: @text-color;
  background-color: @background-color;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

// 通用工具类
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.ml-8 { margin-left: 8px; }
.ml-16 { margin-left: 16px; }

.mr-8 { margin-right: 8px; }
.mr-16 { margin-right: 16px; }

.p-8 { padding: 8px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }

.pt-8 { padding-top: 8px; }
.pt-16 { padding-top: 16px; }
.pt-24 { padding-top: 24px; }

.pb-8 { padding-bottom: 8px; }
.pb-16 { padding-bottom: 16px; }
.pb-24 { padding-bottom: 24px; }

.pl-16 { padding-left: 16px; }
.pr-16 { padding-right: 16px; }

// 页面容器
.page-container {
  min-height: 100vh;
  background-color: @background-color;
  padding-bottom: 20px;
}

.page-header {
  background-color: @white;
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid @border-color;
  
  .title {
    font-size: 18px;
    font-weight: 500;
    color: @text-color;
  }
  
  .subtitle {
    font-size: 14px;
    color: @text-color-secondary;
    margin-top: 4px;
  }
}

.page-content {
  padding: 16px;
}

// 表单样式
.form-section {
  background-color: @white;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  
  .section-title {
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    color: @text-color;
    border-bottom: 1px solid @border-color;
  }
  
  .section-content {
    padding: 16px;
  }
}

// 按钮样式
.submit-button {
  margin: 24px 16px 16px;
  
  .t-button {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
  }
}

// 成功页面样式
.success-page {
  .success-icon {
    font-size: 64px;
    color: @success-color;
    margin-bottom: 16px;
  }
  
  .success-title {
    font-size: 20px;
    font-weight: 500;
    color: @text-color;
    margin-bottom: 8px;
  }
  
  .success-desc {
    font-size: 14px;
    color: @text-color-secondary;
    margin-bottom: 32px;
  }
}

// 404页面样式
.not-found-page {
  .not-found-icon {
    font-size: 64px;
    color: @text-color-placeholder;
    margin-bottom: 16px;
  }
  
  .not-found-title {
    font-size: 20px;
    font-weight: 500;
    color: @text-color;
    margin-bottom: 8px;
  }
  
  .not-found-desc {
    font-size: 14px;
    color: @text-color-secondary;
    margin-bottom: 32px;
  }
}